<?php
/**
 * Dept.php
 *
 * @copyright   2023 thingsworld.com.cn - All Rights Reserved
 * @link        http://thingsworld.com.cn/
 * @author      stiffer.chen <chenl@thingsworld.com.cn>
 * @created     2023-05-11 17:30:05
 * @modified    2023-05-11 17:30:05
 *
 */

namespace App\Models\Warehouse;

use App\Models\BaseModel;
use App\Models\DeptModel;

class Dept extends BaseModel
{
    protected $table = 'warehouse_dept';
    protected $primaryKey = 'id';

    public $timestamps = false;

    protected $fillable = [
        'warehouse_id',
        'dept_id'
    ];

    public function dept()
    {
        return $this->belongsTo(DeptModel::class);
    }
}